package org.dromara.crawler.mongo.mongodomain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionField;
import com.mongoplus.annotation.collection.CollectionName;
import com.mongoplus.enums.IdTypeEnum;
import lombok.Data;
import org.bson.Document;

import java.util.Date;
import java.util.List;

@Data
@CollectionName(value = "crawler_logs", database = "NEWS")
public class CrawlerLogs {

    @ID(type = IdTypeEnum.ASSIGN_ID)
    private String id;

    private String taskId;

    private String durationSec;

    private Date endedAt;

    private Date startedAt;

    private String status;

    private List<Document> logsLines;

    private Document params;

    private String lineCount;

    @JsonIgnore
    private Object _id;




}
